package com.hk.D.demo;

import com.hk.D.AppContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppContext.class);
        //ctx.register(AppContext.class);
        //ctx.refresh();

        System.out.println(ctx.getBean(Course.class));
        ctx.destroy();

    }

}
